package com.woniu.outlet.po;

import com.woniu.inlet.group.AddGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@ApiModel("订单明细表")
@AllArgsConstructor
@NoArgsConstructor
public class OrderDetails {
    @ApiModelProperty(value = "订单明细id")
    private Long id;

    @ApiModelProperty(value = "订单编号")
    @NotNull(message = "订单编号不能为空")
    private String orderNo;

    @NotNull(message = "产品不能为空")
    @ApiModelProperty(value = "产品id")
    private Long productId;

    @NotNull(message = "产品数量不能为空")
    @ApiModelProperty(value = "产品数量")
    private Long num;

    @ApiModelProperty(value = "备用字段1")
    private String spare1;
    @ApiModelProperty(value = "备用字段2")
    private String spare2;
    @ApiModelProperty(value = "备用字段3")
    private String spare3;

}